import addLabelFunc from '@/utils/enumUtils';
interface RootObject {
  articleType: ENUM.EnumFunction & ArticleTypeI;
  articleStateType: ENUM.EnumFunction & ArticleStateTypeI;
  historyRecordType: ENUM.EnumFunction & historyRecordTypeI;
}
export interface ArticleTypeI {
  '0': ENUM.BaseType;
  '1': ENUM.BaseType;
  '2': ENUM.BaseType;
}
export interface ArticleStateTypeI {
  0: ENUM.BaseType;
  1: ENUM.BaseType;
}
export interface historyRecordTypeI {
  like: ENUM.BaseType;
  comment: ENUM.BaseType;
  footprint: ENUM.BaseType;
}
const articleEnum: RootObject = {
  articleType: {
    '0': {
      name: '原创',
      label: '原创',
      key: 0,
    },
    '1': {
      name: '转载',
      label: '转载',
      key: 1,
    },
    '2': {
      name: '翻译',
      label: '翻译',
      key: 2,
    },
  },
  articleStateType: {
    0: {
      name: '草稿',
      label: '草稿',
      key: 0,
    },
    1: {
      name: '发布',
      label: '发布',
      key: 1,
    },
  },
  historyRecordType: {
    like: {
      name: '点赞',
      label: '点赞',
      text: '点赞',
      status: 'like',
      key: 'like',
    },
    comment: {
      name: '评论',
      label: '评论',
      text: '评论',
      status: 'comment',
      key: 'comment',
    },
    footprint: {
      name: '足迹',
      label: '足迹',
      text: '足迹',
      status: 'footprint',
      key: 'footprint',
    },
  },
};
addLabelFunc(articleEnum);
export default articleEnum;
